//
//  HPDateTimeListView.h
//  V-POS
//
//  Created by handpay on 13-3-12.
//  Copyright (c) 2013年 handpay. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HPDateTimeListView;

typedef NS_ENUM (NSInteger, HPDateTimeListViewMode) {
    HPDateTimeListViewModeDate,         // 仅日期:返回yyyyMMdd
    HPDateTimeListViewModeTime,         // 仅时间:返回HHmmss
    HPDateTimeListViewModeDateMonth,    // 年月:返回yyyyMM
    HPDateTimeListViewModeDateTime,     // 年月日时分秒:返回yyyyMMddHHmmss
};

@interface HPDateTimeListView : UIView<UIPickerViewDelegate, UIPickerViewDataSource>{
    UIButton* dropDownButton;
    UITextField* contentTextField;
    
    UIView* bgView;
    UIView* actionView;
}

@property(nonatomic) HPDateTimeListViewMode mode;

@property(nonatomic, retain) NSString *label;

@property(nonatomic, readonly) NSString *value;

- (id)initWithFrame:(CGRect)frame label:(NSString *)label mode:(HPDateTimeListViewMode)mode;

@end
